package by.kenjmark.example;

import java.util.ArrayList;
import java.util.List;

import by.kenjmark.example.config.drive.DriveData;
import by.kenjmark.example.config.source.SourceData;

public class ApplicationSettings {

	private List<SourceData> sources;

	private List<DriveData> stores;

	public void addSource(SourceData source) {
		if (sources == null) {
			sources = new ArrayList<SourceData>();
		}

		if (source != null) {
			sources.add(source);
		}
	}

	public void clearSources() {
		sources = new ArrayList<SourceData>();
	}

	public void addStore(DriveData store) {
		if (stores == null) {
			stores = new ArrayList<DriveData>();
		}

		if (store != null) {
			stores.add(store);
		}
	}

	public void clearStores() {
		stores = new ArrayList<DriveData>();
	}

}
